package net.ojbk.study.curriculumDesign.dao.canvasmodel;

import net.ojbk.study.curriculumDesign.beans.canvasmodel.Canvas;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface CanvasDao {

    public List<Canvas> selectByPage(int skip, int size);

    public List<Canvas> selectBycgid(@Param("cgid") int cgid, @Param("skip") int skip, @Param("size") int size);

    public int countBycgid(int cgid);

    public void insertOne(Canvas canvas);

    public void updateOne(Canvas canvas);

    public String selectimg(int cid);

    /**
     * 通过cid删除一条信息
     *
     * @parm int
     */
    public void deleteBycid(@Param("cid") Integer cid);

    /**
     * @param cid
     * @return Canvas
     * @author cy
     */
    public Canvas selectOneCanvas(Integer cid);

    /**
     * @param uid
     * @return
     * @author cy
     * 作用：选择该用户可以拍卖的所有油画
     */
    public Set<Canvas> getAllCanvasByUid(String uid);
}
